﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.fmtx.Model;

namespace com.fmtx.IDal
{
    public interface IUserInfo:IBase<UserInfo>
    {
        /// <summary>
        /// 文章最多的
        /// </summary>
        /// <returns></returns>
        IList<UserInfo> QueryArticleCount(int size);

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="uname"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        UserInfo Login(string uname, string password);
        /// <summary>
        /// 判断用户名或email是否存在
        /// </summary>
        /// <param name="uname"></param>
        /// <returns></returns>
        bool IsExsts(string uname);

    }
}
